/*!giscus-theme-dark-start*/
main {
  --color-prettylights-syntax-comment: #8b949e;
  --color-prettylights-syntax-constant: #79c0ff;
  --color-prettylights-syntax-entity: #d2a8ff;
  --color-prettylights-syntax-storage-modifier-import: #c9d1d9;
  --color-prettylights-syntax-entity-tag: #a5d6ff;
  --color-prettylights-syntax-keyword: #ff7b72;
  --color-prettylights-syntax-string: #a5d6ff;
  --color-prettylights-syntax-variable: #ffa198;
  --color-prettylights-syntax-brackethighlighter-unmatched: #f85149;
  --color-prettylights-syntax-invalid-illegal-text: #f0f6fc;
  --color-prettylights-syntax-invalid-illegal-bg: #8e1519;
  --color-prettylights-syntax-carriage-return-text: #f0f6fc;
  --color-prettylights-syntax-carriage-return-bg: #b62324;
  --color-prettylights-syntax-string-regexp: #a5d6ff;
  --color-prettylights-syntax-markup-list: #f2cc60;
  --color-prettylights-syntax-markup-heading: #1f6feb;
  --color-prettylights-syntax-markup-italic: #c9d1d9;
  --color-prettylights-syntax-markup-bold: #c9d1d9;
  --color-prettylights-syntax-markup-deleted-text: #ffdcd7;
  --color-prettylights-syntax-markup-deleted-bg: #67060c;
  --color-prettylights-syntax-markup-inserted-text: #cae8ff;
  --color-prettylights-syntax-markup-inserted-bg: #0c2d6b;
  --color-prettylights-syntax-markup-changed-text: #ffdcd7;
  --color-prettylights-syntax-markup-changed-bg: #67060c;
  --color-prettylights-syntax-markup-ignored-text: #c9d1d9;
  --color-prettylights-syntax-markup-ignored-bg: #1158c7;
  --color-prettylights-syntax-meta-diff-range: #d2a8ff;
  --color-prettylights-syntax-brackethighlighter-angle: #8b949e;
  --color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;
  --color-prettylights-syntax-constant-other-reference-link: #a5d6ff;
  --color-btn-text: #c9d1d9;
  --color-btn-bg: #21262d;
  --color-btn-border: rgb(240 246 252 / 10%);
  --color-btn-shadow: 0 0 transparent;
  --color-btn-inset-shadow: 0 0 transparent;
  --color-btn-hover-bg: #30363d;
  --color-btn-hover-border: #8b949e;
  --color-btn-active-bg: hsl(212deg 12% 18% / 100%);
  --color-btn-active-border: #6e7681;
  --color-btn-selected-bg: #161b22;
  --color-btn-primary-text: #fff;
  --color-btn-primary-bg: #1f6feb;
  --color-btn-primary-border: rgb(240 246 252 / 10%);
  --color-btn-primary-shadow: 0 0 transparent;
  --color-btn-primary-inset-shadow: 0 0 transparent;
  --color-btn-primary-hover-bg: #388bfd;
  --color-btn-primary-hover-border: rgb(240 246 252 / 10%);
  --color-btn-primary-selected-bg: #1f6feb;
  --color-btn-primary-selected-shadow: 0 0 transparent;
  --color-btn-primary-disabled-text: rgb(255 255 255 / 50%);
  --color-btn-primary-disabled-bg: rgb(31 111 235 / 60%);
  --color-btn-primary-disabled-border: rgb(240 246 252 / 10%);
  --color-fg-default: #c9d1d9;
  --color-fg-muted: #8b949e;
  --color-fg-subtle: #6e7681;
  --color-canvas-default: #0d1117;
  --color-canvas-overlay: #161b22;
  --color-canvas-inset: #010409;
  --color-canvas-subtle: #161b22;
  --color-border-default: #30363d;
  --color-border-muted: #21262d;
  --color-neutral-muted: rgb(110 118 129 / 40%);
  --color-accent-fg: #58a6ff;
  --color-accent-emphasis: #1f6feb;
  --color-accent-muted: rgb(56 139 253 / 40%);
  --color-accent-subtle: rgb(56 139 253 / 15%);
  --color-success-fg: #58a6ff;
  --color-attention-fg: #d29922;
  --color-attention-muted: rgb(187 128 9 / 40%);
  --color-attention-subtle: rgb(187 128 9 / 15%);
  --color-danger-fg: #f85149;
  --color-danger-muted: rgb(248 81 73 / 40%);
  --color-danger-subtle: rgb(248 81 73 / 15%);
  --color-primer-shadow-inset: 0 0 transparent;
  --color-primer-shadow-focus: 0 0 0 3px #0c2d6b;
  --color-scale-gray-7: #21262d;
  --color-scale-blue-8: #0c2d6b;

  /*! Extensions from @primer/css/alerts/flash.scss */
  --color-social-reaction-bg-hover: var(--color-scale-gray-7);
  --color-social-reaction-bg-reacted-hover: var(--color-scale-blue-8);
}

main .pagination-loader-container {
  background-image: url("https://github.com/images/modules/pulls/progressive-disclosure-line-dark.svg");
}

main .gsc-loading-image {
  background-image: url("https://github.githubassets.com/images/mona-loading-dark.gif");
}

.btn-primary {
  @apply border-reco-primary/90 bg-reco-primary/90 text-white;
}
.btn-primary:disabled {
  @apply border-reco-primary/80 bg-reco-primary/80 text-white;
}
.btn-primary:hover,
.btn-primary:active {
  @apply border-reco-primary bg-reco-primary;
}
/* 标记确认功能在评论功能中并不需要，且点击无效，暂时移除 */
.gsc-upvote-button {
  @apply hidden;
}
.gsc-social-reaction-summary-item {
  @apply rounded;
}
.gsc-social-reaction-summary-item.has-reacted {
  @apply border-reco-primary bg-transparent text-reco-primary;
}
.gsc-social-reaction-summary-item.has-reacted:hover {
  @apply bg-reco-primary/50;
}
.color-box-border-info {
  @apply border-reco-border-darkmode;
}
.gsc-comment-box-write:focus-within {
  @apply border-reco-primary ring-2 ring-reco-primary/80;
}
.color-bg-tertiary {
  @apply bg-reco-bg-darkmode-code;
}
.input-contrast {
  @apply bg-reco-bg-darkmode-code;
}
.color-border-primary {
  @apply border-reco-border-darkmode;
}
.form-control:focus {
  @apply border-reco-primary ring-2 ring-reco-primary/80;
}
.gsc-comment-box-textarea:focus {
  @apply border-reco-border-darkmode ring-0;
}
.color-fg-accent, .color-text-link, .link-primary:hover, .link-secondary:hover,
.gsc-reactions-button.popover-only:hover {
  @apply text-reco-primary;
}
.gsc-comment-box-buttons a:active, .gsc-comment-box-buttons a:link, .gsc-comment-box-buttons a:focus, .gsc-comment-box-buttons a:visited {
  @apply text-white;
}

.color-bg-default, .color-bg-primary {
  @apply bg-reco-bg-darkmode-code;
}

.gsc-reply-box {
  @apply border-dashed;
}

.gsc-comment-box-tabs {
  @apply border-dashed;
  border-bottom-style: solid;
  div:first-child {
    @apply m-0;
  }
  .color-bg-canvas {
    @apply border-t-0 border-l-0 border-r-0 border-b-2 !important;
    @apply bg-reco-bg-darkmode-code border-solid border-reco-primary;
  }
}

.form-control {
  @apply bg-reco-bg-darkmode;
}

.gsc-comment-box-textarea:focus {
  @apply bg-reco-bg-darkmode;
}

.gsc-right-header button {
  @apply bg-reco-bg-darkmode-code;
  &[aria-selected='true'] {
    @apply bg-reco-primary;
  }
}

.color-fg-default, .color-text-primary, .link-primary {
  @apply text-reco-text-darkmode;
}

.color-fg-muted, .color-text-secondary, .link-secondary {
  @apply text-reco-text-darkmode-lighter;
}

.gsc-comment-author img {
  @apply rounded !important;
}
/*!giscus-theme-dark-end*/